package com.rainfull.ui;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.Handler;


public class RUISplash extends Activity
{  
	@Override  
    public void onCreate(Bundle savedInstanceState) 
    {  
        super.onCreate(savedInstanceState);  
        setContentView(R.layout.splash);         
        Handler splash = new Handler();
        splash.postDelayed(new splashHandle(), 2000);       
    }  
  
    class splashHandle implements Runnable
    {
        public void run() 
        {     
            RUISplash.this.finish();
        }         
    }
    @Override
    public void onResume()
    {
    	if(getRequestedOrientation()!=ActivityInfo.SCREEN_ORIENTATION_PORTRAIT)
    	{
    		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
    	}
    	super.onResume();
    }      
}